<!-- 模块说明 -->
<script setup lang="ts">
import { IAdmin } from "../../api/index";

//
interface IProps {
  list: any[];
  page: IAdmin;
  onGetUserList: () => void;
  total: number;
}
let props = defineProps<IProps>();
//
</script>
<template>
  <div>
    <el-table :data="props.list" style="width: 100%" border>
      <el-table-column prop="id" label="id" />
      <el-table-column prop="nickname" label="nickname" />
      <el-table-column prop="username" label="username" />
    </el-table>
    <el-pagination
      v-model:page-size="props.page.size"
      v-model:current-page="props.page.current"
      layout="prev, pager, next"
      :total="total"
    />
  </div>
</template>
<style lang="scss" scoped>
.box {
  // width: 100%;
}
</style>
